﻿<?php
require('dbconnect.php');
if (!isset( $_GET['us'] ) )
{
	die( 'us没设置！' );
}

$username=$_GET['us'];

$checksql="select * from `user` where name='$username'";
$check_re=mysql_query($checksql,$conn);
$num=mysql_num_rows($check_re);
echo $num, "\n";

if($num==0){
   echo "此用户名可以注册!";
  }
else{
   echo "此用户名已存在,请填写其它用户名!";
   }
mysql_close($conn);
?>